<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>

<bsl:layout-definition>
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

	<html>
	<head>
	<meta name="keywords" content="windy warm,windywarm,gas can,gas cans,fuel container,jerry can,metal gas can,portable gas can,stell gas can,buy gas can,gas cans for sale,metal fuel container">
	<META HTTP-EQUIV="Expires" CONTENT="0">
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
	<META HTTP-EQUIV="cache-control" CONTENT="no-cache">
	<title>
	Windy Warm - <bsl:layout-component name="title" /></title>
	
	
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/bootstrap.min.css" />
	
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/common.css" />
	
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/portal/common.css" />
	
	<link rel="stylesheet" href="<%=request.getContextPath()%>/css/jquery.popeye.style.css" type="text/css" media="all" />
	
	<link rel="stylesheet" href="<%=request.getContextPath()%>/css/jquery.popeye.css" type="text/css" media="all" />

	<script src="<%=request.getContextPath()%>/js/jquery.min.js"
		type="text/javascript"></script>
		
		<script src="<%=request.getContextPath()%>/js/common.js"
		type="text/javascript"></script>
		<script src="<%=request.getContextPath()%>/js/jquery.popeye-2.1.js"></script>
		
	<script>
	 var contextPath = "<%=request.getContextPath()%>";
	</script>
	
	

	<bsl:layout-component name="html-head" />
	</head>
	
	<body>
	<c:set value="<%=request.getContextPath()%>" var="contextPath"></c:set>
		<c:set var="isAdmin" value="no"></c:set>
		<c:choose>
			<c:when test="${user.role.name eq 'admin'}">
				<c:set var="isAdmin" value="yes"></c:set>
			</c:when>
		</c:choose>

	<div class="container">
		
			<div id="header">
				<jsp:include page="/WEB-INF/jsp/portalCommon/header.jsp" />
			</div>
			<div id="nav" class="tabs">
				<bsl:layout-component name="nav">
					<jsp:include page="/WEB-INF/jsp/portalCommon/nav.jsp" />
					
				</bsl:layout-component>
			</div>
			
			<div class="clear-shadow"></div>
			<div id="main">
				<table style="width:100%;" >
					
					<tr>
						<td class="side_info" valign="top">
							<div class="side_info_div">
								<bsl:layout-component name="side_info" />
							</div>
						</td>
						<td style="width: 80%" valign="top">
							<div class="content">
							<bsl:layout-component name="content" />
						</div>	
						</td>
					</tr>
				</table>
					
					
			 </div>
			 <div class="footer_info">
			 	<c:choose>
					<c:when test="${not empty user}">
					<a href="<%=request.getContextPath()%>/logout">logout&nbsp;&nbsp;</a>
					</c:when>
					<c:otherwise>
					<a href="${contextPath}/viewLogin">登录&nbsp;&nbsp;</a>
					</c:otherwise>
					</c:choose>
			 	<bsl:when-authorized permissions="admin">
			 	
			 		<a target="_blank" href="${contextPath}/viewArticleContent">Management</a>&nbsp;&nbsp;
			 		
			 	</bsl:when-authorized>
			 	The contents of this web page are copyright © 2012-2013 windywarm.com. All Rights Reserved&nbsp;&nbsp;
			 </div>
	</div>
	<bsl:layout-component name="post-load-script" />
	</body>
	</html>
</bsl:layout-definition>
